package com.tencreat.domain.mall;

import com.baomidou.mybatisplus.annotation.*;
import com.tencreat.common.annotation.Excel;
import com.tencreat.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;


/**
 * 消息通知对象 mall_message_inform
 *
 * @author tencreat
 * @date 2021-11-25
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@AllArgsConstructor
@NoArgsConstructor
@ApiModel
@TableName("mall_message_inform")
public class MallMessageInform extends BaseEntity<MallMessageInform>{
    private static final long serialVersionUID = 1L;


    /** 编号 */
    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "ID")
    private Long id;


    /** 用户ID */
    @Excel(name = "用户ID")
    @ApiModelProperty(value= "用户ID")
    @TableField("`user_id`")
    private Long userId;


    /** 消息标题 */
    @Excel(name = "消息标题")
    @ApiModelProperty(value= "消息标题")
    @TableField("`title`")
    private String title;


    /** 消息内容 */
    @Excel(name = "消息内容")
    @ApiModelProperty(value= "消息内容")
    @TableField("`content`")
    private String content;

    @ApiModelProperty("回复内容")
    private String reply;


    /** 消息类型;0|订单消息通知,1|平台消息通知,2|已经反馈的回复 */
    @Excel(name = "消息类型;0|订单消息通知,1|平台消息通知,2|已经反馈的回复")
    @ApiModelProperty(value= "消息类型;0|订单消息通知,1|平台消息通知,2|已经反馈的回复")
    @TableField("`type`")
    private Integer type;


    /** 未读;0|未读,1|已读 */
    @Excel(name = "未读;0|未读,1|已读")
    @ApiModelProperty(value= "未读;0|未读,1|已读")
    @TableField("`unread`")
    private Integer unread;


    /** 关联业务数据ID */
    @Excel(name = "关联业务数据ID")
    @ApiModelProperty(value= "关联业务数据ID")
    @TableField("`business_id`")
    private Long businessId;

    /** 删除标志;0代表存在 2代表删除 */
    @TableLogic
    @TableField("`del_flag`")
    private String delFlag;


    /** 乐观锁 */
    @Excel(name = "乐观锁")
    @ApiModelProperty(value= "乐观锁")
    @TableField("`revision`")
    private Long revision;


/*
    */
/** 租户号 *//*

    @Excel(name = "租户号")
    @ApiModelProperty(value= "租户号")
    @TableField("`tenant_id`")
    private Long tenantId;
*/

    @ApiModelProperty(value= "是否确认 1-已确认 0-未确认")
    @TableField("`confirm`")
    private Integer confirm;

    @ApiModelProperty(value= "订单消息类型 1-下单通知，显示收货信息")
    @TableField("`message_type`")
    private Integer messageType;
}
